package org.algorithm.Stack;

public class StackTest
{
    public static void main(String[] args) {
        LinkedListStack<Integer> listStack = new LinkedListStack<>(3);

        listStack.push(1);
        listStack.push(2);
        listStack.push(3);

        System.out.println("isEmpty"+listStack.isEmpty());

        System.out.println("isFull"+listStack.isFull());

        System.out.println(listStack.peek());

        listStack.pop();

        System.out.println(listStack.peek());

    }
}
